package com.kaizige.realtor.Pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

@Data
public class message {
	private int id;
	private String from;
	private String from_iden;
	private String to;
	private String to_iden;
	private String content;
	private int msg_status = 0;
	
	private static int iniID = 30;
	
	public message(String from,String from_iden,String to,String to_iden,String content){
		id = iniID++;
		this.from = from;
		this.from_iden = from_iden;
		this.to = to;
		this.to_iden = to_iden;
		this.content = content;
	}
}
